<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="dashboard/header :: header"></div>

<body>
	<div class="container-fluid">
		<br />
		<div class="row">
			<!-- 
				<div class="col-4">1 of 3</div>
				 -->
			<div class="col-12">
				<form id="modifyForm" enctype="multipart/form-data">
					<div class="form-group row">
						<label class="col-sm-2 col-form-label" for="exampleInputPassword1">资产名称</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="assertName" placeholder="资产名称">
						</div>
					</div>

					<div class="form-group row">
						<label class="col-sm-2 col-form-label" for="exampleInputPassword1">资产编号</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="assertNum" placeholder="资产编号">
						</div>
					</div>
					
					<div class="form-group row">
						<label class="col-sm-2 col-form-label" for="exampleInputPassword1">资产业务线</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="businessType" placeholder="资产业务线">
						</div>
					</div>
					
					<div class="form-group row">
						<label class="col-sm-2 col-form-label" for="exampleInputPassword1">资产标签</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="assertTags" placeholder="资产标签">
						</div>
					</div>

					<div class="form-group row">
						<label class="col-sm-2 col-form-label"
							for="exampleFormControlSelect1">资产类型</label>
						<div class="col-sm-10">
							<select class="form-control" name="assertType">
								<option value="0">全区</option>
								<option th:each="m:${schools}" th:value="${m.masterCode}"
									th:text="${m.masterName}"></option>
							</select>
						</div>
					</div>

					<br />
					<button type="button" onclick="save()" class="btn btn-primary btn-lg btn-block">保存</button>
				</form>
			</div>
		</div>
	</div>

	<script type="text/javascript">
		var options = {
			url : "/manager/asserts_add_save",
			type : "post",
			success : successfun,
			dataType : "json",
			timeout : 3000
		};

		function save() {
			$('#modifyForm').ajaxSubmit(options);
		}

		function successfun(response, status) {
			layer.msg(response.message);
		}

	</script>

</body>
</html>
